package com.sicpa.system.service;

import com.sicpa.common.core.domain.entity.AntiCounterfeitingUnifiedFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * IAntiCounterfeitingUnifiedFileService
 *
 * @author lwf
 */
public interface IAntiCounterfeitingUnifiedFileService {


    /**
     * 上传文件并保存文件日志
     *
     * @param file
     * @return
     */
    AntiCounterfeitingUnifiedFile add(MultipartFile file) throws IOException, InterruptedException;

    /**
     * 下载文件并保存文件日志
     *
     * @param fileName,fileId
     * @return
     */
    void download(String fileId, String fileName, HttpServletResponse response) throws IOException, InterruptedException;
}
